package com.ruoyi.cms.domain;

import com.ruoyi.customer.domain.CrmCustomer;
import com.ruoyi.employee.domain.CrmEmployee;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员对象 crm_member
 * 
 * @author hct
 * @date 2022-10-06
 */
@Data
public class CrmMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 头像 */
    @Excel(name = "头像")
    private String head;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 11是正常2是停用 */
    @Excel(name = "11是正常2是停用")
    private Integer status;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 电话 */
    @Excel(name = "电话")
    private String mobile;

    /** 归属客户id */
    @Excel(name = "归属客户id")
    private Long customerId;
    private CrmCustomer crmCustomer;

    private CrmEmployee crmEmployee;

    /** 归属员工id */
    @Excel(name = "归属员工id")
    private Long employeeId;

    /** 身份 0代表没有归属 1代表已认证为企业用户 */
    @Excel(name = "身份 0代表没有归属 1代表已认证为企业用户")
    private Integer identity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHead(String head) 
    {
        this.head = head;
    }

    public String getHead() 
    {
        return head;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setIdentity(Integer identity) 
    {
        this.identity = identity;
    }

    public Integer getIdentity() 
    {
        return identity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("head", getHead())
            .append("name", getName())
            .append("sex", getSex())
            .append("status", getStatus())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("password", getPassword())
            .append("mobile", getMobile())
            .append("customerId", getCustomerId())
            .append("employeeId", getEmployeeId())
            .append("identity", getIdentity())
            .toString();
    }
}
